Skip to content

add libs::sharness - #202

Open
stepardo wants to merge 1 commit into
BobBuildTool:masterfrom
stepardo:master
Open

stepardo wants to merge 1 commit into
BobBuildTool:masterfrom
stepardo:master

Conversation

@stepardo

@stepardo stepardo commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Sharness is a portable shell library to write, run, and analyze automated tests for Unix programs. Since all tests output TAP, the Test Anything Protocol, they can be run with any TAP harness.

Signed-off-by: Steffen Liebergeld <steffen.liebergeld@kernkonzept.com>
@@ -0,0 +1,13 @@
inherit: [make]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add the standard meta variables.

Comment on lines +4 to +7
scm: git
url: ${GITHUB_MIRROR}/felipec/sharness.git
tag: v1.2.1
shallow: 1

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We generally prefer tarballs whenever possible. That makes mirroring easier and has usually less overhead.

Suggested change
scm: git
url: ${GITHUB_MIRROR}/felipec/sharness.git
tag: v1.2.1
shallow: 1
scm: url
url: ${GITHUB_MIRROR}/felipec/sharness/archive/refs/tags/v${PKG_VERSION}.tar.gz
digestSHA256: ...
stripComponents: 1

shallow: 1

buildScript: |
make -C "$1" install prefix=/usr DESTDIR="$PWD/install"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better use makeParallel or makeSequential. A plain make will behave differently if started with a job server or without.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would move this to recipes/devel/sharness.yaml because it's a development tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants